package com.huawei.appmarket.service.videostream.view;

import android.content.Context;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.h;
import o.emv;
import o.mo;

public class ViewPagerLayoutManager extends LinearLayoutManager {
    private emv ˊ;
    private mo ˋ = new mo();
    private RecyclerView ˏ;
    private h ॱ = new h(this) {
        final /* synthetic */ ViewPagerLayoutManager ˎ;

        {
            this.ˎ = r1;
        }

        public void ˎ(View view) {
            if (this.ˎ.ˊ != null && this.ˎ.ˈ() == 1) {
                this.ˎ.ˊ.ˊ(this.ˎ.ˎ(view), view);
            }
        }

        public void ˋ(View view) {
            if (this.ˎ.ˊ != null) {
                this.ˎ.ˊ.ˊ(this.ˎ.ˎ(view));
            }
        }
    };

    public ViewPagerLayoutManager(Context context, int i) {
        super(context, i, false);
    }

    public void ˋ(RecyclerView recyclerView) {
        super.ˋ(recyclerView);
        this.ˋ.ˏ(recyclerView);
        this.ˏ = recyclerView;
        this.ˏ.ˏ(this.ॱ);
    }

    public void ˊॱ(int i) {
        if (ˊॱ() >= 0) {
            View ॱ = this.ˋ.ॱ(this);
            int ˊॱ = ˊॱ();
            if (this.ˊ != null && ˈ() == 1) {
                this.ˊ.ˏ(ˊॱ, ॱ);
            }
        }
    }

    public void ˋ(emv o_emv) {
        this.ˊ = o_emv;
    }
}
